package org.timemachine.query.util;


public interface QueryConstants {
	
	static final String FROM_CLAUSE = "FROM ";
	static final String WHERE_CLAUSE = "WHERE ";
	static final String AS_ALLIAS = "AS ";
	static final String AS_ALLIAS_LOWER = "as ";
	
	static final String WITH = "WITH ";
	static final String GROUP_BY = "GROUP BY ";
	static final String HAVING = "HAVING ";
	static final String UNION = "UNION ";
	static final String ORDER_BY = "ORDER BY ";
	static final String INTO = "INTO ";
	
	static final String INNER_JOIN = "INNER JOIN ";
	static final String LEFT_OUTER_JOIN = "LEFT OUTER JOIN ";
	static final String LEFT_JOIN = "LEFT JOIN ";
	static final String RIGHT_JOIN = "RIGHT JOIN ";
	static final String RIGHT_OUTER_JOIN = "RIGHT OUTER JOIN ";
	static final String FULL_JOIN = "FULL JOIN ";
	static final String JOIN = "JOIN ";
	static final String JOIN_FETCH = "JOIN FETCH ";
	
	static final String [] fromClauseCommands = {
		WITH,
		GROUP_BY,
		HAVING,
		UNION,
		ORDER_BY,
		INTO
	};
	
	static final String [] joinClauseCommands = {
		INNER_JOIN,
		LEFT_OUTER_JOIN,
		RIGHT_OUTER_JOIN,
		FULL_JOIN,
		RIGHT_JOIN,
		LEFT_JOIN,
		JOIN_FETCH
	};
	
}
